<?php
if(!defined('SITE_PATH'))		define('SITE_PATH'	, dirname(getcwd()).'/self');
if(!defined('APPS_PATH'))		define('APPS_PATH'	, SITE_PATH.'/apps');
if(!defined('UPLOAD_PATH'))		define('UPLOAD_PATH', SITE_PATH.'/data/uploads');
if(!defined('APP_PATH'))		define('APP_PATH' , SITE_PATH.'/apps/web');
define('THINK_PATH', SITE_PATH.'/ThinkPHP');
//定义项目名称和路径
define('APP_NAME', 'web');
// 加载框架入口文件
require(THINK_PATH."/ThinkPHP.php");
//实例化一个网站应用实例
App::run();
?>